package dataStructure.linearList.node;

/**
 * @author guihuo (E-mail:1620657419@qq.com)
 * @version v1.0 创建时间：2017/10/28 13:42
 *          通用链表节点
 */
public class LinkedNode<T> extends Node<T> {

    private LinkedNode<T> nextNode;

    public LinkedNode(T value) {
        super(value);
    }

    public LinkedNode(T value, LinkedNode<T> nextNode) {
        super(value);
        this.nextNode = nextNode;
    }

    public LinkedNode<T> next() {
        return nextNode;
    }

    public void setNextNode(LinkedNode<T> nextNode) {
        this.nextNode = nextNode;
    }

}
